import request from '@/utils/request'

// 查询会员权益列表
export function listHyqy(query) {
  return request({
    url: '/hyqy/hyqy/list',
    method: 'get',
    params: query
  })
}

// 查询会员权益详细
export function getHyqy(hyqyId) {
  return request({
    url: '/hyqy/hyqy/' + hyqyId,
    method: 'get'
  })
}

// 新增会员权益
export function addHyqy(data) {
  return request({
    url: '/hyqy/hyqy',
    method: 'post',
    data: data
  })
}

// 修改会员权益
export function updateHyqy(data) {
  return request({
    url: '/hyqy/hyqy',
    method: 'put',
    data: data
  })
}

// 删除会员权益
export function delHyqy(hyqyId) {
  return request({
    url: '/hyqy/hyqy/' + hyqyId,
    method: 'delete'
  })
}
